﻿@model Realtors.Web.UI.Models.PropertySearchViewModel

@{
    ViewBag.Title = "Property Search - Realtor Space";
}

<div class="row">
    <div class="box">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form-horizontal">
                <h4>PropertySearchViewModel</h4>
                <hr />
                @Html.ValidationSummary(true)

                <div class="form-group">
                    @Html.LabelFor(model => model.Is4Lease, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.Is4Lease)
                        @Html.ValidationMessageFor(model => model.Is4Lease)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Is4Purchase, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.Is4Purchase)
                        @Html.ValidationMessageFor(model => model.Is4Purchase)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.City, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.City)
                        @Html.ValidationMessageFor(model => model.City)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.MinimumPrice, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.MinimumPrice)
                        @Html.ValidationMessageFor(model => model.MinimumPrice)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.MaximumPrice, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.MaximumPrice)
                        @Html.ValidationMessageFor(model => model.MaximumPrice)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.MinimumRooms, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.MinimumRooms)
                        @Html.ValidationMessageFor(model => model.MinimumRooms)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.MinimumBathrooms, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.MinimumBathrooms)
                        @Html.ValidationMessageFor(model => model.MinimumBathrooms)
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type="submit" value="Create" class="btn btn-default" />
                    </div>
                </div>
            </div>
        }


    </div>
</div>